package agile.hustler.Characters;

import java.util.Scanner;

/**
 * @(#)Text3.java
 * 
 * 
 * @author
 * @version 1.00 2010/4/21
 */

public class Caster extends CharacterType {

	public Caster(String N, int L) {

		name = N;
		level = L;
		charType = "Caster";
		actionPoint = 10 + 6 * level;
		luck = 6 + 4 * level;
		effekt = 15 + 6 * level;
		hp = 40 + 10 * level;


	}

	public String toString() {
		return charType + " " + name + " " + level + " " + actionPoint + " "
		+ luck + " " + effekt + " " + hp + " " + XP + " " + money + " ";
	}

	public String getHP() {
		return Integer.toString((int)hp);
	}
	
	public void updateLevel(int l){
		level += 1;
		actionPoint += 6;
		luck 		+= 4;
		effekt 		+= 6;
		hp 			+= 10;
	}
/*
	public void fromString(String s) {
		Scanner scanner = new Scanner(s);
		scanner.useDelimiter(" ");
		while (scanner.hasNext()) {
			charType = scanner.next();
			name = scanner.next();
			level = Integer.parseInt(scanner.next());
			actionPoint = Integer.parseInt(scanner.next());
			luck = Integer.parseInt(scanner.next());
			effekt = Integer.parseInt(scanner.next());
			hp = Integer.parseInt(scanner.next());
			XP = Integer.parseInt(scanner.next());
			money = Integer.parseInt(scanner.next());
			// log("Name is : " + quote(name.trim()) + ", and Value is : " +
			// quote(value.trim()) );
		}

	}
*/
}